package org.wiw.client.model;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Person implements IsSerializable{
	private long id;
	private String nickname;
	private String color;
	
	public Person() {}
	
	public Person(long id, String nickname, String color) {
		this.id = id;
		this.nickname = nickname;
		this.color = color;
	}

	public long getId() {
		return id;
	}

	public String getNickname() {
		return nickname;
	}

	public String getColor() {
		return color;
	}
	
	public void setColor(String color) {
		this.color = color;
	}
	
	@Override
	public int hashCode() {
		return nickname.hashCode();
	}
}
